class ICommand(object):

    def initialize(self, jobrun):
        pass

    def get_required_env(self):
        pass

    def run(self, stdout, stderr, stdin=None)
        pass

    def get_artifact(self):
        pass

    def get_status_repr(status):
        pass
        


class JobManager(object):
    pass

class JobIOManager(object):
    pass


def init_db(connstr):
    import model
    "postgres://kjkuan:abc123@localhost:5432/jobhub"
    model.metadata.bind = connstr
    model.setup_all()
    model.create_all()
    #model.jobhub.drop_all()


if __name__ == '__main__':
    init_db()

